revealer: Support minimum size of child
authorCarlos Soriano <csoriano@redhat.com>
Tue, 18 Sep 2018 08:55:02 +0000 (10:55 +0200)
committerCarlos Soriano <csoriano@redhat.com>
Tue, 18 Sep 2018 09:36:29 +0000 (11:36 +0200)
commit57ef793e6db5c4ad848d14815b1e74532cbb775e
tree3ce7a8b6197c337f3490bcad07ecbca4966715fb
parentf3e6d00db17cf22d8e9b875452dc7a7ed72bd677
revealer: Support minimum size of child

Up until now when allocating the child it only used the natural size
while the measuring also used the minimum size, resulting in a clipped
child when animating if the child had different minimum size and
natural size. This was an obvious case when using labels that had
ellipsization.

This commit gives full allocation to the child by inverting the size
the revealer reduces from its animation progress.

Code done by Benjamin Otte.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/635
gtk/gtkrevealer.c